import request from '@/utils/request'

// 查询首页广告列表
export function listTyBanner(query) {
  return request({
    url: '/system/tyBanner/list',
    method: 'get',
    params: query
  })
}

// 查询首页广告详细
export function getTyBanner(id) {
  return request({
    url: '/system/tyBanner/' + id,
    method: 'get'
  })
}

// 新增首页广告
export function addTyBanner(data) {
  return request({
    url: '/system/tyBanner',
    method: 'post',
    data: data
  })
}

// 修改首页广告
export function updateTyBanner(data) {
  return request({
    url: '/system/tyBanner',
    method: 'put',
    data: data
  })
}

// 删除首页广告
export function delTyBanner(id) {
  return request({
    url: '/system/tyBanner/' + id,
    method: 'delete'
  })
}

export function qryJumplist(query) {
  return request({
    url: '/system/tyBanner/qryJumplist',
    method: 'get',
    params: query
  })
}
